package com.mao.service.impl.voucher;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mao.dao.voucher.ReturnWareHouseVoucherDao;
import com.mao.model.voucher.ReturnWareHouseVoucher;
import com.mao.service.voucher.IReturnWareHouseVoucherService;

@Service("returnWareHouseVoucherService")
public class ReturnWareHouseVoucherServiceImpl implements IReturnWareHouseVoucherService {

	private ReturnWareHouseVoucherDao returnWareHouseVoucherDao;

	public ReturnWareHouseVoucher saveReturnWareHouseVoucher(ReturnWareHouseVoucher rwv) {
		return returnWareHouseVoucherDao.saveReturnWareHouseVoucher(rwv);
	}
	
	public String verifiyCanReturn(long proId,long orgId,long whId) {
		return returnWareHouseVoucherDao.verifiyCanReturn(proId, orgId,whId);
	}

	public ReturnWareHouseVoucherDao getReturnWareHouseVoucherDao() {
		return returnWareHouseVoucherDao;
	}

	@Autowired
	public void setReturnWareHouseVoucherDao(
			ReturnWareHouseVoucherDao returnWareHouseVoucherDao) {
		this.returnWareHouseVoucherDao = returnWareHouseVoucherDao;
	}

	

}
